package com.chongqing.shiro.mapper;

import com.chongqing.shiro.model.entity.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUsername(String username);

    void updateLastLoginTime(User user);

    List<User> selectUsers(User user);

    User selectByUserId(String userId);

    int updateByUserId(User userForm);

    int updateStatusBatch(Map<String, Object> params);

    List<User> findRoleId(String roleId);

    List<User> findByRoleIds(List<String> roleIdsList);
}